package com.wxm.pattern.factorymethod;

public class FactoryMethodTest {
    public static void main(String[] args) {
        IAnimalFactory catFactory = new CatFactory();
        catFactory.getAnimal().eat();

        IAnimalFactory pigFactory = new PigFactory();
        pigFactory.getAnimal().eat();
    }
}
